package com.party.course.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.party.course.domain.SubAmountInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * 金额分账明细Mapper接口
 *
 * @author ruoyi
 * @date 2025-06-06
 */
@Mapper
public interface SubAmountInfoMapper  extends BaseMapper<SubAmountInfo>
{
    /**
     * 查询金额分账明细
     *
     * @param id 金额分账明细主键
     * @return 金额分账明细
     */
    public SubAmountInfo selectSubAmountInfoById(@Param("id") String id);

    /**
     * 查询金额分账明细列表
     *
     * @param subAmountInfo 金额分账明细
     * @return 金额分账明细集合
     */
    public List<SubAmountInfo> selectSubAmountInfoList(@Param("subAmountInfo") SubAmountInfo subAmountInfo);

    /**
     * 删除金额分账明细
     *
     * @param id 金额分账明细主键
     * @return 结果
     */
    public int deleteSubAmountInfoById(@Param("id") String id);

    /**
     * 批量删除金额分账明细
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSubAmountInfoByIds(@Param("ids") List<String> ids);

    List<SubAmountInfo> findByClassIdAndUid(@Param("classId")String classId,@Param("coaId") String coaId,@Param("role") String role);

    List<SubAmountInfo> findByClassIdAndNotUid(@Param("classId")String classId,@Param("coaId") String coaId,@Param("role") String role);
}
